home *** CD-ROM | disk | FTP | other *** search
/ SVM Mac CD-ROM 59 / SVM Mac CD-ROM - No 59.iso / Wanadoo / Media / Present.dcr / Internal_491_Parties.ls < prev    next >
Encoding:
Text File  |  2000-01-18  |  1.6 KB  |  57 lines

  1. property pPiste1, pPiste2, pPiste3, pText0, pText1, pText2, pFilet0, pFilet1, pFilet2, pAnim0, pAnim1
  2.  
  3. on mouseEnter me
  4.   set pPiste1 to the currentSpriteNum + 1
  5.   set pPiste2 to the currentSpriteNum + 2
  6.   set pPiste3 to the currentSpriteNum + 3
  7.   case the name of member the memberNum of sprite the currentSpriteNum of
  8.     "zoneInst":
  9.       set pText0 to "Installer0"
  10.       set pText1 to "Installer1"
  11.       set pText2 to "Installer2"
  12.       set pFilet0 to "FiletBleu0"
  13.       set pFilet1 to "FiletBleu1"
  14.       set pFilet2 to "FiletBleu2"
  15.       set pAnim0 to "AnimNuit0"
  16.       set pAnim1 to "AnimNuit1"
  17.     "zoneDeco":
  18.       set pText0 to "Decouvrir0"
  19.       set pText1 to "Decouvrir1"
  20.       set pText2 to "Decouvrir2"
  21.       set pFilet0 to "FiletJaune0"
  22.       set pFilet1 to "FiletJaune1"
  23.       set pFilet2 to "FiletJaune2"
  24.       set pAnim0 to "AnimNuit0"
  25.       set pAnim1 to "AnimNuit1"
  26.   end case
  27.   set the member of sprite pPiste1 to pAnim1
  28.   set the member of sprite pPiste2 to pText1
  29.   set the member of sprite pPiste3 to pFilet1
  30.   cursor(280)
  31. end
  32.  
  33. on mouseDown me
  34.   if pPiste2 <> VOID then
  35.     set the member of sprite pPiste2 to pText2
  36.     set the member of sprite pPiste3 to pFilet2
  37.     cursor(290)
  38.   end if
  39. end
  40.  
  41. on mouseUp me
  42.   if pPiste2 <> VOID then
  43.     set the member of sprite pPiste2 to pText1
  44.     set the member of sprite pPiste3 to pFilet1
  45.     cursor(280)
  46.   end if
  47. end
  48.  
  49. on mouseLeave me
  50.   if pPiste2 <> VOID then
  51.     set the member of sprite pPiste1 to pAnim0
  52.     set the member of sprite pPiste2 to pText0
  53.     set the member of sprite pPiste3 to pFilet0
  54.     cursor(-1)
  55.   end if
  56. end
  57.